﻿<!-- Navigation-->


@if (Services.Cookie.GetUserType() == bonus.Models.Grade.USER)
{
    //用户
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav">
        <a class="navbar-brand" href="javascript:;">@Services.Cookie.GetUserName()</a>
        <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarResponsive">
            <ul class="navbar-nav navbar-sidenav" id="exampleAccordion">
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Dashboard">
                    <a class="nav-link" href="/Index/Index">
                        <i class="fa fa-fw fa-dashboard"></i>
                        <span class="nav-link-text">首页</span>
                    </a>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Tables">
                    <a class="nav-link" href="/Finance/Index">
                        <i class="fa fa-fw fa-bar-chart"></i>
                        <span class="nav-link-text">财务报表</span>
                    </a>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Tables">
                    <a class="nav-link" href="/Order/OrderAll">
                        <i class="fa fa-fw fa-area-chart"></i>
                        <span class="nav-link-text">报单记录</span>
                    </a>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Menu Levels">
                    <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#collapseMulti" data-parent="#exampleAccordion">
                        <i class="fa fa-fw fa-user"></i>
                        <span class="nav-link-text">个人中心</span>
                    </a>
                    <ul class="sidenav-second-level collapse" id="collapseMulti">
                        <li>
                            <a href="/Member/SecondaryPwd?url=/Member/Index">账户资料</a>
                        </li>
                        <li>
                            <a href="/Member/ChangePaw">密码修改</a>
                        </li>
                    </ul>
                </li>
            </ul>
            <ul class="navbar-nav sidenav-toggler">
                <li class="nav-item">
                    <a class="nav-link text-center" id="sidenavToggler">
                        <i class="fa fa-fw fa-angle-left"></i>
                    </a>
                </li>
            </ul>
            <ul class="navbar-nav ml-auto">
                <li class="nav-item">
                    <a class="nav-link" data-toggle="modal" data-target="#exampleModal">
                        <i class="fa fa-fw fa-sign-out"></i>Logout
                    </a>
                </li>
            </ul>
        </div>
    </nav>
}
else if (Services.Cookie.GetUserType() == bonus.Models.Grade.CENTER)
{
    //服务中心
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav">
        <a class="navbar-brand" href="javascript:;">@Services.Cookie.GetUserName()</a>
        <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarResponsive">
            <ul class="navbar-nav navbar-sidenav" id="exampleAccordion">
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Dashboard">
                    <a class="nav-link" href="/index/index">
                        <i class="fa fa-fw fa-dashboard"></i>
                        <span class="nav-link-text">首页</span>
                    </a>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Tables">
                    <a class="nav-link" href="/Finance/Index">
                        <i class="fa fa-fw fa-area-chart"></i>
                        <span class="nav-link-text">财务报表</span>
                    </a>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Example Pages">
                    <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#collapseExamplePages" data-parent="#exampleAccordion">
                        <i class="fa fa-fw fa-bar-chart"></i>
                        <span class="nav-link-text">报单管理</span>
                    </a>
                    <ul class="sidenav-second-level collapse" id="collapseExamplePages">
                        <li>
                            <a href="/Order/addOrder">添加报单</a>
                        </li>
                        <li>
                            <a href="/Order/OrderAll">报单记录</a>
                        </li>
                    </ul>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Menu Levels">
                    <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#collapseMulti" data-parent="#exampleAccordion">
                        <i class="fa fa-fw fa-user"></i>
                        <span class="nav-link-text">个人中心</span>
                    </a>
                    <ul class="sidenav-second-level collapse" id="collapseMulti">
                        <li>
                            <a href="/Member/SecondaryPwd?url=/Member/Index">账户资料</a>
                        </li>
                        <li>
                            <a href="/Member/ChangePaw">密码修改</a>
                        </li>
                    </ul>
                </li>
            </ul>
            <ul class="navbar-nav sidenav-toggler">
                <li class="nav-item">
                    <a class="nav-link text-center" id="sidenavToggler">
                        <i class="fa fa-fw fa-angle-left"></i>
                    </a>
                </li>
            </ul>
            <ul class="navbar-nav ml-auto">
                <li class="nav-item">
                    <a class="nav-link" data-toggle="modal" data-target="#exampleModal">
                        <i class="fa fa-fw fa-sign-out"></i>Logout
                    </a>
                </li>
            </ul>
        </div>
    </nav>
}
else if (Services.Cookie.GetUserType() == bonus.Models.Grade.CAMPANY)
{
    //分公司
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav">
        <a class="navbar-brand" href="javascript:;">@Services.Cookie.GetUserName()</a>
        <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarResponsive">
            <ul class="navbar-nav navbar-sidenav" id="exampleAccordion">
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Dashboard">
                    <a class="nav-link" href="/index/index">
                        <i class="fa fa-fw fa-dashboard"></i>
                        <span class="nav-link-text">首页</span>
                    </a>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Tables">
                    <a class="nav-link" href="/Finance/Index">
                        <i class="fa fa-fw fa-area-chart"></i>
                        <span class="nav-link-text">财务报表</span>
                    </a>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Example Pages">
                    <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#collapseExamplePages" data-parent="#exampleAccordion">
                        <i class="fa fa-fw fa-bar-chart"></i>
                        <span class="nav-link-text">报单管理</span>
                    </a>
                    <ul class="sidenav-second-level collapse" id="collapseExamplePages">
                        <li>
                            <a href="/Order/addOrder">添加报单</a>
                        </li>
                        <li>
                            <a href="/Order/OrderAll">报单记录</a>
                        </li>
                    </ul>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Menu Levels">
                    <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#collapseMulti" data-parent="#exampleAccordion">
                        <i class="fa fa-fw fa-user"></i>
                        <span class="nav-link-text">个人中心</span>
                    </a>
                    <ul class="sidenav-second-level collapse" id="collapseMulti">
						<li>
							<a href="/Member/MerberList">用户关系</a>
						</li>
                        <li>
                            <a href="/Member/SecondaryPwd?url=/Member/Index">账户资料</a>
                        </li>
                        <li>
                            <a href="/Member/ChangePaw">密码修改</a>
                        </li>
                    </ul>
                </li>
            </ul>
            <ul class="navbar-nav sidenav-toggler">
                <li class="nav-item">
                    <a class="nav-link text-center" id="sidenavToggler">
                        <i class="fa fa-fw fa-angle-left"></i>
                    </a>
                </li>
            </ul>
            <ul class="navbar-nav ml-auto">
                <li class="nav-item">
                    <a class="nav-link" data-toggle="modal" data-target="#exampleModal">
                        <i class="fa fa-fw fa-sign-out"></i>Logout
                    </a>
                </li>
            </ul>
        </div>
    </nav>
}
else if (Services.Cookie.GetUserType() == bonus.Models.Grade.AMDIN)
{
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top" id="mainNav">
        <a class="navbar-brand" href="javascript:;">@Services.Cookie.GetUserName()</a>
        <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarResponsive">
            <ul class="navbar-nav navbar-sidenav" id="exampleAccordion">
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="首页">
                    <a class="nav-link" href="/index/index">
                        <i class="fa fa-fw fa-dashboard"></i>
                        <span class="nav-link-text">首页</span>
                    </a>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="财务报表">
                    <a class="nav-link" href="/Finance/Index">
                        <i class="fa fa-fw fa-area-chart"></i>
                        <span class="nav-link-text">财务报表</span>
                    </a>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="产品管理">
                    <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#collapseProduct" data-parent="#exampleAccordion">
                        <i class="fa fa-fw fa-flag"></i>
                        <span class="nav-link-text">产品管理</span>
                    </a>
                    <ul class="sidenav-second-level collapse" id="collapseProduct">
                        <li>
                            <a href="/Product/Index">产品列表</a>
                        </li>
                        <li>
                            <a href="/Product/AddProduct">添加产品</a>
                        </li>
                        <li>
                            <a href="/Product/ProductMonthData">产品月数据</a>
                        </li>
                    </ul>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="公告">
                    <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#collapseComponents" data-parent="#exampleAccordion">
                        <i class="fa fa-fw fa-comment"></i>
                        <span class="nav-link-text">公告</span> 
                    </a>
                    <ul class="sidenav-second-level collapse" id="collapseComponents">
                        <li>
                            <a href="/Notice/Index">公告列表</a>
                        </li>
                        <li>
                            <a href="/Notice/Add">公告添加</a>
                        </li>
                    </ul>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="申请管理">
                    <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#collapseMaterial" data-parent="#exampleAccordion">
                        <i class="fa fa-fw fa-building-o"></i>
                        <span class="nav-link-text">申请管理</span>
                    </a>
                    <ul class="sidenav-second-level collapse" id="collapseMaterial">
                        <li>
                            <a href="/Order/ConWithdraw">提现申请</a>
                        </li>
                        <li>
                            <a href="/Order/ConWithdrawView">提现记录</a>
                        </li>
                    </ul>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="报单管理">
                    <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#collapseExamplePages" data-parent="#exampleAccordion">
                        <i class="fa fa-fw fa-bar-chart"></i>
                        <span class="nav-link-text">报单管理</span>
                    </a>
                    <ul class="sidenav-second-level collapse" id="collapseExamplePages">
                        <li>
                            <a href="/Order/addOrder">添加报单</a>
                        </li>
                        <li>
                            <a href="/Order/Index">报单状态修改</a>
                        </li>
                        <li>
                            <a href="/Order/OrderAll">报单记录</a>
                        </li>
						<li>
							<a href="/RollBack/Index">退回报单</a>
						</li>
                    </ul>
                </li>
                <li class="nav-item" data-toggle="tooltip" data-placement="right" title="个人中心">
                    <a class="nav-link nav-link-collapse collapsed" data-toggle="collapse" href="#collapseMulti" data-parent="#exampleAccordion">
                        <i class="fa fa-fw fa-users"></i>
                        <span class="nav-link-text">个人中心</span>
                    </a>
                    <ul class="sidenav-second-level collapse" id="collapseMulti">
                        <li>
                            <a href="/Member/MerberLists">用户列表</a>
                        </li>
                        <li>
                            <a href="/Member/MerberList">用户关系</a>
                        </li>
                        <li>
                            <a href="/Member/SecondaryPwd?url=/Member/Index">账户资料</a>
                        </li>
                        <li>
                            <a href="/Member/ChangePaw">密码修改</a>
                        </li>
                        <li>
                            <a href="/Register/AddUser">添加用户</a>
                        </li>
                        <li>
                            <a href="/Member/RetrievePaw">密码重置</a>
                        </li>
                    </ul>
                </li>
            </ul>
            <ul class="navbar-nav sidenav-toggler">
                <li class="nav-item">
                    <a class="nav-link text-center" id="sidenavToggler">
                        <i class="fa fa-fw fa-angle-left"></i>
                    </a>
                </li>
            </ul>
            <ul class="navbar-nav ml-auto">
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle mr-lg-2" id="messagesDropdown" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        <i class="fa fa-fw fa-envelope"></i>
                            @if (Services.Cookie.GetMsgCode() == "1")
                            {
                                <span class="indicator text-primary d-none d-lg-block">
                                    <i class="fa fa-fw fa-circle"></i>
                                </span>
                            }
                    </a>
                    <div class="dropdown-menu" aria-labelledby="messagesDropdown">
                        <h6 class="dropdown-header">最新消息:</h6>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="/Order/ConWithdraw" id="Material">
                            <strong>提现申请</strong>
                            <div class="dropdown-message small">当前有<strong class="text-danger">@Services.Cookie.GetMsgWithdraw()</strong>条提现申请,请点击查看详情</div>
                        </a>
                        @*<div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="/Register/SetUpAnAccount" id="SetUpAnAccount">
                            <strong>开通账号申请</strong>
                            <div class="dropdown-message small">当前有<strong class="text-danger">@Services.Cookie.GetMsgAccount()</strong>条提现申请,请点击查看详情</div>
                        </a>*@
                        <div class="dropdown-divider"></div>
                    </div>
                </li>
                
                <li class="nav-item">
                    <a class="nav-link" data-toggle="modal" data-target="#exampleModal">
                        <i class="fa fa-fw fa-sign-out"></i>Logout
                    </a>
                </li>
            </ul>
        </div>
    </nav>
}


